package com.yu.crm.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yu.crm.domain.pojo.CrmEarlyWarningModel;
import com.yu.crm.domain.pojo.CrmEarlyWarningType;
import com.yxzz.common.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;


/**
 * <p>
 * 预警模式表
 Mapper 接口
 * </p>
 *
 * @author pan
 * @since 2020-06-29
 */
public interface CrmEarlyWarningModelMapper extends BaseMapper<CrmEarlyWarningModel> {
    public CrmEarlyWarningModel getInfoById(Long id);
//    public List<CrmEarlyWarningModel> findAll(String userId);
    public IPage<CrmEarlyWarningModel> query(Page<CrmEarlyWarningModel> page, @Param("queryInfo") CrmEarlyWarningModel queryInfo);

    public List<CrmEarlyWarningType>  selectTypeList(@Param("id") Long id);
}
